package parserTable;
import java.util.*;

public class Grammar {
	
	private String chave; // caracter que chama as produ��es
	private ArrayList<Producao> Prodlist = new ArrayList<Producao>();
	
	public Grammar(String x){
		this.chave=x;
	}
	public String getchave(){
		return this.chave;
	}
	public void adiciona(Producao p){
		Prodlist.add(p);
	}
	public ArrayList<Producao> getProdlist() {
		return Prodlist;
	}
	public Producao getProdlist(int index) {
		return Prodlist.get(index);
	}
	
	public void setProdlist(ArrayList<Producao> prodlist) {
		Prodlist = prodlist;
	}
	

}
